package com.alex.ioc.spel;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Application {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("spel.xml");

        Car car1 = (Car) ctx.getBean("car1");
        System.out.println(car1);

        Person person1 = (Person) ctx.getBean("person1");
        System.out.println(person1);
    }
}
